package cn.com.yusys.yusp.mobile.web.rest;

import cn.com.yusys.yusp.commons.mapper.QueryModel;
import cn.com.yusys.yusp.commons.web.rest.dto.ResultDto;
import cn.com.yusys.yusp.mobile.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/mobile/user")
public class UserResource {

    @Resource
    UserService userService;

    @GetMapping("/getUserInfo")
    public ResultDto<Object> getUserInfo(QueryModel queryModel) {
        return new ResultDto<>(userService.getUserInfo(queryModel));
    }

    @GetMapping("/getSecondGridValue")
    public ResultDto<Object> getSecondGridValue(QueryModel queryModel) {
        return new ResultDto<>(userService.getSecondGridValue(queryModel));
    }

}
